package org.smr.ministore.dao;


import org.apache.ibatis.annotations.Param;
import org.smr.ministore.entities.BrandOrgan;
import org.apache.ibatis.annotations.Mapper;
import org.blade.dao.base.BaseMapper;
import org.blade.dao.base.PageQueryMapper;
import org.smr.ministore.entities.vo.Assign2OrgansVO;
import org.smr.ministore.entities.vo.BrandOrganQuery;

import java.util.List;


/**
*
**/
@Mapper
public interface BrandOrganMapper extends BaseMapper<Long, BrandOrgan>,PageQueryMapper<Long,BrandOrgan> {

    /**
    * 逻辑删除
    * @param id
    *
    */
    int deleteByIdLogical(@Param("id") Long id);

    /**
     *
     * @param assign2Organs
     * @return
     */
    List<BrandOrgan> selectBy(@Param("assign2Organs") Assign2OrgansVO assign2Organs);


    /**
     * 查询已经指派
     *
     * @param brandOrganQuery brandOrganQuery
     * @return  List<BrandOrgan>
     */
    List<BrandOrgan> queryAlreadyAssignedOrgans(@Param("query")BrandOrganQuery brandOrganQuery);

}